GXDrawRectangle
You can use theGXDrawRectangle
function to draw a rectangle without creating a rectangle shape.
void GXDrawRectangle(const gxRectangle *data, gxShapeFill fill);
data
- A pointer to the rectangle geometry you want to draw.
fill
- The shape fill to use when drawing the rectangle.
DESCRIPTION
TheGXDrawRectangle
function draws the rectangle geometry specified by thedata
parameter, using the shape fill specified by thefill
parameter, and the style, ink, and transform of the default rectangle shape.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory parameter_is_nil (debugging version) shapeFill_is_not_allowed (debugging version) SEE ALSO
For examples using this function, see "Creating and Drawing Rectangles" beginning on page 2-43.For more information about rectangles and the default rectangle shape, see "Rectangle Shapes" on page 2-20.
For the definition of the
gxRectangle
structure, see page 2-106.For more information about drawing shapes, see the description of the
GXDrawShape
function in the chapter "Shape Objects" in Inside Macintosh: QuickDraw GX Objects.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help